class_name PlayerConfig
extends UnitBaseConfig

@export var start_level: float = 1
@export var start_exp: float = 10

@export var level_up_exp_base: float = 50.0
@export var level_up_exp_alpha: float = 2.0

@export var charged_attack_bonus: float = 1.0

# level up growth
@export var life_growth: float = 0.5
@export var attack_growth: float = 0.2
@export var defense_growth: float = 0.1

@export var max_equip_card_count: int = 4


func exp_for_level(n: int) -> int:
	return int(round(level_up_exp_base * pow(n, level_up_exp_alpha)))
